<template>
    <div :class="isFirst ? 'titleComponent-wrap-first' : 'titleComponent-wrap'">
        {{title}}
    </div>
</template>

<script>
    export default {
        name: "titleComponent",
        props: {
            title: {
                type: String,
                default: () => ''
            },
            isFirst: {
                type: Boolean,
                default: () => false
            },
        }
    }
</script>

<style scoped lang="less">
.titleComponent-wrap-first{
    position: absolute;
    top: 12px;
    left: 16px;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}
.titleComponent-wrap {
    position: absolute;
    top: 10px;
    left: 12px;
    overflow: hidden;
    box-sizing: border-box;
    height: 22px;
    line-height: 22px;
    font-size: 16px;
    font-weight: bolder;
    border-left: 4px solid #0c82FF;
    padding-left: 6px;
}
</style>
